import request from '@/router/axios';


//列表
export const fmeapreventList = (current, size, params) => {
  return request({
    url: '/api/hg-public/fmeaprevent/page',
    method: 'get',
    params: {
      current,
      size,
      ...params
    }
  })
}
//添加
export const addFmeaprevent = (mold) => {
  return request({
    url: '/api/hg-public/fmeaprevent/submit',
    method: 'post',
    data: mold
  })
}

//编辑时获取数据
export const fmeapreventDetail = (id) => {
  return request({
    url: '/api/hg-public/fmeaprevent/detail',
    method: 'get',
    params: {
      id
    }
  })
}

//编辑
export const updateFmeaprevent = (mold) => {
  return request({
    url: '/api/hg-public/fmeaprevent/submit',
    method: 'post',
    data: mold
  })
}

//删除
export const removeFmeaprevent = (ids) => {
  return request({
    url: '/api/hg-public/fmeaprevent/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

